function switchSysBar(){ 
var locate=location.href.replace('lab_main/middle.jsp','');
var ssrc=document.all("img1").src.replace(locate,'');
if (ssrc=="images/main_55.gif")
{ 
document.all("img1").src="images/main_55_1.gif";
document.all("frmTitle").style.display="none" ;
} 
else
{ 
document.all("img1").src="images/main_55.gif";
document.all("frmTitle").style.display="" ;
} 
} 

function currentTime()
{
	var date = new Date();
	var month = date.getMonth()+1;
	var sec = date.getSeconds();
	var hour = date.getHours();
	var day = date.getDate();
	var minutes = date.getMinutes();
	var week = date.getDay();
	
	var weekday = null;
	switch(week)
	{
	case 1 : weekday = "Monday";break;
	case 2 : weekday = "Tuesday";break;
	case 3 : weekday = "Wednesday";break;
	case 4 : weekday = "Thursday";break;
	case 5 : weekday = "Friday";break;
	case 6 : weekday = "Saturday";break;
	case 0 : weekday = "Sunday";break;
	default:weekday="";
	}
	if(month < 10)
		month = "0" + month;
	if(day < 10)
		day = "0" + day;
	if(hour < 10)
		hour = "0" + hour;
	if(sec < 10)
		sec = "0" + sec;
	if(minutes < 10)
		minutes = "0" + minutes;
	var currentDate = date.getFullYear()+"."+month+"."+day+"&nbsp;"+hour+":"+minutes+":"+sec+"&nbsp;&nbsp;"+weekday;
	document.getElementById("time").innerHTML = currentDate;
}
function refreshTime()
{
	setInterval("currentTime();",1000);
}
function showsubmenu(sid) {
	whichEl = eval("submenu" + sid);
	imgmenu = eval("imgmenu" + sid);
	if (whichEl.style.display == "none") {
		eval("submenu" + sid + ".style.display=\"\";");
		imgmenu.background = "images/main_47.gif";
	} else {
		eval("submenu" + sid + ".style.display=\"none\";");
		imgmenu.background = "images/main_48.gif";
	}
}
